/**
 * 查看js
 * @returns
 */

layui.use(['jquery','layer','table','form'],function(){
    var $ = layui.$,
        layer = layui.layer,
        form = layui.form,
        table = layui.table;
    
    
    //页面加载完成
    $(document).ready(function(){ 
    	var id = GetQueryString("id");
    	$.post("/systemsetup/basicsetup/blogroll/getByBlogroll",{id:id},function(result){
    		$("#title").val(result.data["title"]);
    		$("#ID").val(id);
    		$("#url").val(result.data["url"]);
    		$("#picture").val(result.data["picture"]);
    		$("#sort").val(result.data["sort"]);
    	});
    });
    
});

function detailClose() {
	var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
	parent.layer.close(index); //再执行关闭  
}